package com.qf.spring2202.proxypatten.proxy;

import com.qf.spring2202.proxypatten.dao.FangDong;

public class FangDongStaticProxy implements FangDong {
    private FangDong fangDong;

    public FangDong getFangDong() {
        return fangDong;
    }

    public void setFangDong(FangDong fangDong) {
        this.fangDong = fangDong;
    }

    @Override
    public void rentHouse() {
        // 赋能
        System.out.println("发布租房信息");
        System.out.println("看房");
        // 调用核心功能
        fangDong.rentHouse();
    }
}
